package com.excel.strategy;

//import com.alibaba.excel.write.handler.AbstractSheetWriteHandler;
//import com.alibaba.excel.write.metadata.holder.WriteSheetHolder;
//import com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder;
//import org.apache.poi.ss.usermodel.Sheet;
//import org.springframework.stereotype.Component;

/**
 * @Description AutoWidthHandler
 * @Author fuhao
 * @CreateTime 2024/9/30 10:20
 */
//@Component
//public class AutoWidthHandler extends AbstractSheetWriteHandler {
//
//    @Override
//    public void afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) {
//        Sheet sheet = writeSheetHolder.getSheet();
//        sheet.setDefaultColumnWidth(15);
//    }
//}
